﻿using GalaSoft.MvvmLight.Ioc;
using Haidou.Wpf.UI.Data;

namespace Haidou.Wpf.UI.ViewModel
{
	public class ViewModelLocator
    {
		public ViewModelLocator()
		{


			SimpleIoc.Default.Register(() => new GrowlViewModel(), "Growl");
			SimpleIoc.Default.Register(() => new GrowlViewModel(MessageToken.GrowlDemoPanel), "GrowlWithToken");
			SimpleIoc.Default.Register(() => new GrowlViewModel(MessageToken.GrowlDemoPanel), "OptionsLogView");
			

			SimpleIoc.Default.Register<ViewModelLocator>();




		}


		public static ViewModelLocator Instance = new Lazy<ViewModelLocator>(() => (ViewModelLocator)System.Windows.Application.Current.TryFindResource(resourceKey: "Locator")).Value;


		#region Vm

		//public GrowlViewModel Growl => SimpleIoc.Default.GetInstance<GrowlViewModel>("Growl");
	



		#endregion



	}
}
